package game.de;

import java.util.Random;

public class DeImpl implements De {
    private CollectionDeFace faces;

    public DeImpl() {
        FaceFactoryInterface ffi = new FaceFactory();
        faces = ffi.create();
    }

    public Face roll() {
        Face f = faces.get(new Random().nextInt(6));
        return f;
    }

    public int nombreDeFaces() {
        return faces.size();
    }
}
